import request from '@/utils/request'

// 查询打标关系字段规整列表
export function listFieldrule(query) {
  return request({
    url: '/conf/fieldrule/list',
    method: 'get',
    params: query
  })
}

// 查询打标关系字段规整详细
export function getFieldrule(id) {
  return request({
    url: '/conf/fieldrule/' + id,
    method: 'get'
  })
}

// 新增打标关系字段规整
export function addFieldrule(data) {
  return request({
    url: '/conf/fieldrule',
    method: 'post',
    data: data
  })
}
// 新增打标关系字段规整
export function insertData(data) {
  return request({
    url: '/conf/fieldrule/insertData',
    method: 'post',
    data: data
  })
}
// 新增打标关系字段规整
export function clearData(data) {
  return request({
    url: '/conf/fieldrule/clearData',
    method: 'post',
    data: data
  })
}
// 修改打标关系字段规整
export function updateFieldrule(data) {
  return request({
    url: '/conf/fieldrule',
    method: 'put',
    data: data
  })
}

// 删除打标关系字段规整
export function delFieldrule(id) {
  return request({
    url: '/conf/fieldrule/' + id,
    method: 'delete'
  })
}
